package com.manager.controller;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.manager.Util.JsonUtils;
import com.manager.pojo.User;



@Controller
public class UserController {
    @RequestMapping("/user")
	@ResponseBody
	public Object retUser(){
    	User user = new User();
    	user.setAge(11);
    	user.setBirthday(new Date());
    	user.setName("guibin");
    	user.setDesc("长江水利委员会");
    	user.setPassword("1122211");
	   return JsonUtils.jsonResult("ok", 200, user);
   }
}
